// #ifndef VUE3
import Vue from 'vue'
import App from './App'
// 引入公共样式
import './styles/global.scss'
import * as filters from 'filters/index.js'
// 导入vuex 实例
import store from 'store/index.js'
// 文章详情样式全局导入
import './styles/article-detail.scss'
import './styles/global.scss'
// 注册全局过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
// console.log(filters)  HotNumber: ƒ HotNumber(num)
Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
  ...App,
  store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif
